﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Exportation.ExportationTypes;

namespace Exportation
{
    public class ExportationFactory
    {
        public static IExportation GetExportationType(String expType)
        {
            if (!String.IsNullOrEmpty(expType))
            {
                Type t = Type.GetType(expType);
                if(t != null)
                    return (IExportation)Activator.CreateInstance(t);
            }
            return null;
        }
    }
}
